﻿#include "GameLevelSeven.h"
#include"Sprite.h"
#include"Enemy.h"
#include"SupplyBank.h"
#include"WeaponBank.h"
#include"Collider.h"
GameLevelSeven::GameLevelSeven(QSize size, QObject* parent)
	:Fighting(size, parent)
{
	init();
}

void GameLevelSeven::init()
{
	//玩家
	m_Player->closeBlood();
	m_Player->getWeaponBank()->addBulletLevel(2);
	m_Player->setMaxBombNum(3);
	//玩家武器库
	m_Player->getWeaponBank()->setMaxBulletLevel(6);
	m_Player->getWeaponBank()->setBulletDemotion(30_s);
	m_Player->getWeaponBank()->setGuidedMissileCD(30_s);
	//敌机组
	m_enemy->setPlaneType(EnemyPlaneProperty::small | EnemyPlaneProperty::middle | EnemyPlaneProperty::big);
	m_enemy->setHpPlane(20, EnemyPlaneProperty::small);
	m_enemy->setTimerPlane(2_s, 3_s, EnemyPlaneProperty::small);
	m_enemy->setAutoBullet(true, 1_s, EnemyPlaneProperty::small);
	m_enemy->setHpPlane(40, EnemyPlaneProperty::middle);
	m_enemy->setTimerPlane(4_s, 6_s, EnemyPlaneProperty::middle);
	m_enemy->setAutoBullet(true, 1_s, EnemyPlaneProperty::middle);
	m_enemy->setHpPlane(60, EnemyPlaneProperty::big);
	m_enemy->setTimerPlane(30_s, 60_s, EnemyPlaneProperty::big);
	m_enemy->setAutoBullet(true, 1_s, EnemyPlaneProperty::big);
	//补给包组
	m_SupplyBank->setSteplenSupply(100, Supply::Type::bullet);
	m_SupplyBank->setTimerSupply(10_s, 20_s, Supply::bullet);
	m_SupplyBank->setSteplenSupply(150, Supply::Type::bomb);
	m_SupplyBank->setTimerSupply(30_s, 40_s, Supply::bomb);

	m_Collider->startTrackingPlayers(250);
}
